package core.corewa;

import java.util.HashMap;
import java.util.Map;


public class Screen {
    private String id;
    private String ctrlClass;
    private String inputPage;
    private Map<String, Event> events = new HashMap<String, Event>();

    public Screen(String screenId, String controlClass, String inputPage) {
        this.id = screenId;
        this.ctrlClass = controlClass;
        this.inputPage = inputPage;
    }

    public String getCtrlClass() {
        return ctrlClass;
    }

    public void setCtrlClass(String ctrlClass) {
        this.ctrlClass = ctrlClass;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Map<String, Event> getEvents() {
        return events;
    }

    public void setEvents(Map<String, Event> events) {
        this.events = events;
    }

    public void addEvent(Event evt) {
        events.put(evt.getId(), evt);
    }
    
    public Event getEvent(String id) {
        return events.get(id);
    }

    public String getInputPage() {
        return inputPage;
    }

    public void setInputPage(String inputPage) {
        this.inputPage = inputPage;
    }
}